//
//  FindPeopleVc.m
//  weibo
//
//  Created by Apple on 16/7/5.
//  Copyright © 2016年 DP. All rights reserved.
//

#import "XMGFindPeopleVc.h"

@interface XMGFindPeopleVc ()

@end

@implementation XMGFindPeopleVc

- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationItem.title = @"找人";
    //    设置导航条左返回键
    UIButton *btn = [[UIButton alloc]init];
    [btn setImage:[UIImage imageNamed:@"navigationbar_back"] forState:UIControlStateNormal];
    [btn setImage:[UIImage imageNamed:@"navigationbar_back_highlighted"] forState:UIControlStateHighlighted];
    [btn sizeToFit];
    self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc]initWithCustomView:btn];
    //    监控按钮点击
    [btn addTarget:self action:@selector(back) forControlEvents:UIControlEventTouchUpInside];

    
    
 }

-(void)viewWillAppear:(BOOL)animated
{
    self.navigationController.navigationBar.hidden = NO;
    
}

-(void)back{

    [self.navigationController popViewControllerAnimated:YES];
}
 
 
@end
